package com.edu.compile.template.buffer;

public class Buffer {

    private Buffer parentBuffer;

    private StringBuilder buffer = new StringBuilder(500);

    public void append(String str) {
        buffer.append(str);
    }

    public String toString() {
        return buffer.toString();
    }

    public void setParentBuffer(Buffer parentBuffer) {
        this.parentBuffer = parentBuffer;
    }

    public Buffer getParentBuffer() {
        return parentBuffer;
    }
}
